package com.baylor.server.business.constant;


import com.baylor.server.business.common.ErrorCode;

/**
 * 数据库错误，错误码范围：13000-13999
 */
public enum DBErrorEnum implements ErrorCode {

    ERR_USER_NAME(13000, "用户名错误"),

    ERR_USER_PASSWD(13001, "用户密码错误"),

    ERR_UNAME_REPEAT(13002, "用户名重复"),

    ERR_EMAIL_REPEAT(13003, "Email地址重复");

    int errorCode;

    String errorMsg;

    DBErrorEnum(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

}
